<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bookclass_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bookclass_id" data-rule="required" data-source="books/bookclass/index" class="form-control selectpage" name="row[bookclass_id]" type="text" value="{$row.bookclass_id|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('价格（0免费）')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-money" class="form-control" name="row[money]" type="text" value="{$row.money|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('封面')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-mian_image" class="form-control" size="50" name="row[mian_image]" type="text" value="{$row.mian_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-mian_image" class="btn btn-danger faupload" data-input-id="c-mian_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-mian_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-mian_image" class="btn btn-primary fachoose" data-input-id="c-mian_image" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-mian_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-mian_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jie" class="form-control " rows="5" name="row[jie]" cols="50">{$row.jie|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Author')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-author" class="form-control" name="row[author]" type="text" value="{$row.author|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('主角')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lead" class="form-control" name="row[lead]" type="text" value="{$row.lead|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('字数(万)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wordage" class="form-control" name="row[wordage]" type="text" value="{$row.wordage|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('图书地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[local]" id="c-local" class="form-control"/>
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" id="faupload-local" class="btn btn-primary faupload" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/uploabook')}"><i class="fa fa-upload"></i> {:__("上传图书")}</button>
            {if $config.upload.chunking}
            <button type="button" id="faupload-local-chunking" class="btn btn-primary faupload" data-chunking="true" data-maxsize="1gb" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/uploabook')}"><i class="fa fa-upload"></i> {:__("上传图书")}</button>
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Push')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-push" class="form-control selectpicker" name="row[push]">
                {foreach name="pushList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.push"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hot')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-hot" class="form-control selectpicker" name="row[hot]">
                {foreach name="hotList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.hot"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Renew')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-renew" class="form-control selectpicker" name="row[renew]">
                {foreach name="renewList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.renew"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isend')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="isendList" item="vo"}
                <label for="row[isend]-{$key}"><input id="row[isend]-{$key}" name="row[isend]" type="radio" value="{$key}" {in name="key" value="$row.isend"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Check')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check" class="form-control" name="row[check]" type="number" value="{$row.check|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verse')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verse" class="form-control" name="row[verse]" type="number" value="{$row.verse|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
